<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="css/main.css" rel="stylesheet" type="text/css" />
        <link href="css/new.css" rel="stylesheet" type="text/css" />
        <title>Sun SITE</title>
    </head>
    <body>
        <div class="bk4_l_m_bk2"><img src="images/dot_1.gif" alt="" /> 新闻中心&nbsp;<img src="images/video.gif" alt="" /></div>
        <ul class="bk4_l_m_bk5">
            <s:if test="#request.currentType==-1">
                <li class="s">最新焦点</li>
            </s:if>
            <s:else>
                <s:url id="getNewsAll" action="listNews">
                    <s:param name="newsType">-1</s:param>
                </s:url>
                <li><s:a href="%{getNewsAll}">最新焦点</s:a></li>
            </s:else>
            <s:iterator value="newsTypes" id="type">
                <s:if test="#type.newsTypeid==#request.currentType">
                    <s:set name="typeName" value="#type.typeContent"/>
                    <li class="s"><s:property value="typeContent"/></li>
                </s:if>
                <s:else>
                    <s:url id="getNews" action="listNews">
                        <s:param name="newsType"><s:property value="newsTypeid"/></s:param>
                    </s:url>
                    <li><s:a href="%{getNews}"><s:property value="typeContent"/></s:a></li>
                </s:else>
            </s:iterator>
        </ul>
        <div class="bk8">
            <div class="bk8_c_t">
                <img src="images/tab_l_h.gif" alt="" />
                <div class="tab_h">
                    <s:if test="#request.currentType == -1">
                        <a>最新焦点</a>
                    </s:if>
                    <s:else>
                        <a>
                            <s:property value="#typeName"/>
                        </a>
                    </s:else>
                </div>
                <img src="images/tab_r_h.gif" alt="" />
            </div>
            <div class="bk9_c_b_t">
                <img style="float:left" src="images/frame_l_2.gif" alt="" />
                <div class="bk11_c_b_t_m">
                </div>
                <img style="float:right" src="images/frame_r_2.gif" alt="" />
            </div>
            <div class="bk11_c_b_m">
                <div class="border" style="float:left"></div>
                <div class="border" style="float:right"></div>

                <div class="bk10_c_b_m_f">
                    <s:iterator value="news">
                        <div class="bk11_c_b_m_f">
                            <div class="bk10_c_b_m_f_t"><s:property value="releasedate"/></div>
                            <div class="bk10_c_b_m_f_b"><span>&gt;&gt;</span>
                                <a href="#" onclick="javascript:window.open('showNews.action?id=<s:property value="newsId"/>');"><s:property value="title"/></a>
                            </div>
                            <div><s:property value="summary"/></div>
                        </div>
                    </s:iterator>
                </div>
                <div class="clear"></div>
            </div>
            <div class="bk9_c_b_b">
                <img style="float:left" src="images/frame_b_l_3.gif" alt="" />
                <div class="bk9_c_b_t_m_l" style="margin-top:5px">
                    <s:bean name="org.apache.struts2.util.Counter" id="counter">
                        <s:param name="first" value="1"/>
                        <s:param name="last" value="#request.pageCount"/>
                    </s:bean>

                    <s:iterator value="counter">
                        <s:url id="getNextPage" action="listNews">
                            <s:param name="pageNow"><s:property/></s:param>
                        </s:url>
                        <s:a href="%{getNextPage}"><s:property/></s:a>&nbsp;
                    </s:iterator>
                </div>
                <img style="float:right" src="images/frame_b_r_3.gif" alt="" />
            </div>
        </div>
    </body>
</html>
